package kr.hkit.powerjava.chapter06;

import java.util.Scanner;

public class exercise11 {
	public static void main(String[] args) {
		
		int a,b,c;
		
		Scanner input = new Scanner (System.in);
		System.out.print("정수를 입력하시오: ");
		a = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		b = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		c = input.nextInt();
		
		if (a<b && b<c) {
			System.out.println("정렬된 숫자: " + a +" " + b + " " + c);
		} else if (a<c && c<b) {
			System.out.println("정렬된 숫자: " + a +" " + c + " " + b);
		} else if (b<a && a<c) {
			System.out.println("정렬된 숫자: " + b +" " + a + " " + c);
		} else if (b<c && c<a) {
			System.out.println("정렬된 숫자: " + b +" " + c + " " + a);
		} else if (c<b && b<a) {
			System.out.println("정렬된 숫자: " + c +" " + b + " " + a);
		} else if (c<a && a<b) {
			System.out.println("정렬된 숫자: " + c +" " + a + " " + b);
		} else 
			System.out.println("중복된 값이 있습니다.");
		
	}
}
